<template>
  <MyButton>
    <div>这是传入的dom</div>
  </MyButton>
  <MyLayout>
    <template v-slot:footer>
      <div>这里是脚部</div>
    </template>
    <template #header>
      <div>这里是头部</div>
    </template>
    <template v-slot:main>
      <div>这里是身体</div>
    </template>
  </MyLayout>
  <div>-----------------</div>
  <MyLayout2>
    <template #header="obj">
      <div>这里是头部</div>
      <div>这里是头部{{ obj }}</div>
    </template>
  </MyLayout2>
</template>
<script setup>
import MyButton from "./default.vue";
import MyLayout from "./命名.vue";
import MyLayout2 from "./参数.vue";
</script>
<style></style>
